package cn.netbox.spring.service;

import cn.netbox.spring.pojo.WuXiangYuUser;

public class WuXiangYuMethodImpl implements WuXiangYuMethod {
    private WuXiangYuUser wuXiangYuUser;
    public WuXiangYuMethodImpl(){
        System.out.println("service的无参构造");
    }

    public WuXiangYuMethodImpl(WuXiangYuUser wuXiangYuUser) {
        this.wuXiangYuUser = wuXiangYuUser;
        System.out.println("调用了有参构造把wuXiangYuUser对象注入属性");
    }

    public void wuXiangYu() {
        System.out.println("实现了方法WuXiangyu");
    }
}
